package com.itheima.service.impl;

import com.itheima.mapper.ProductMapper;
import com.itheima.service.ReportService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@AllArgsConstructor
public class ReportServiceImpl implements ReportService {

    private ProductMapper productMapper;

    /**
     * 商品上架下架统计
     * @return
     */
    @Override
    public List<Map<String, Object>> productUpOrDown() {
        return productMapper.productUpOrDown();
    }

    /**
     * 商品状态统计
     * @return
     */
    @Override
    public List<Map<String, Object>> productStatus() {
        return productMapper.productStatus();
    }
}
